package com.dc.designPattern._3_prototype.deepClone;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * Description: 演示深拷贝，引用对象信息，需要实现Serializable, Cloneable
 * @author: gdc
 * @date: 2021/3/8
 * @version 1.0
 */
@Data
@AllArgsConstructor
public class DeepCloneableTarget implements Serializable, Cloneable {

	private static final long serialVersionUID = 1L;

	private String cloneName;

	private String cloneClass;

	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
}
